package com.itheima.d14_datastream;

import java.io.DataInputStream;
import java.io.FileInputStream;

/**
 * 特殊数据输出流：DataInputStream
 */
public class DataStreamDemo2 {
    public static void main(String[] args) {
        try(FileInputStream f = new FileInputStream("day06-file-io\\src\\test11.txt");
            DataInputStream d = new DataInputStream(f);
        ){
            System.out.println(d.readByte());
            System.out.println(d.readBoolean());
            System.out.println(d.readChar());
            System.out.println(d.readDouble());
            System.out.println(d.readUTF());
        }catch (Exception e){
            e.printStackTrace();
        }

    }
}
